package org.intrasearch.core.io;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

public class IntegerExternalizableProvider implements ExternalizableProvider<Integer>
{
    public void writeExternal(Integer object, ObjectOutput output) throws IOException
    {
        output.writeInt(object);
    }

    public Integer readExternal(ObjectInput input) throws IOException, ClassNotFoundException
    {
        return input.readInt();
    }
}
